/*
filter.h
offer kinds of filter function api and data type define
designed by lunanting

-----------------------
2020-09-14 09:32:24
create file
-----------------------
*/
#ifndef __FILTER_H
#define __FILTER_H


/*****************************data type define*****************************/
//mean filter class
typedef struct{
    int init;   //init status,1=inited
    float value;    //data value
    float data[10]; //fliter data,last 10
    int foot;  //data foot
    float result;   //filter result
}FiLTER_mean;










/******************************function extern******************************/
extern float xp_filter_mean(FiLTER_mean *obj,float data);   //mean filter 均值滤波





#endif
//end of the file
